<style>
.fui-header a.back:before {
	content: " ";
	border-color: #fff;
}
.fui-cell-group .fui-cell:before {
	border-bottom: 0 solid #ebebeb;
}
</style>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'detail'">
	<div class="fui-header" style="z-index:108;background-color:#18bc9c;position: fixed;">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()">返回上一页</a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff"></div>
				<div class="fui-header-right" style="padding-right:0.5rem;color:#fff;">
						<div class="icon icon-ship r-f" style="font-size:1rem;padding-left:0.5rem" href="javascript:;" ng-click="pagedata.showcard=true;"></div>
						<div style="font-size:1rem;padding-left:0.5rem" href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata.nowitem,'islike')" ng-class="{'r-f icon':1,'icon-shoucang':pagedata.nowitem.islike !=1,'icon-shoucang-tianchong':pagedata.nowitem.islike==1}"></div>
				</div>
		</div>
		
	<div class="fui-content">
		<div class="fui-cell-group" style="width:100%;margin-top:0;z-index:108">
				<div class="fui-cell">
						<div class="fui-cell-text">{{pagedata.item.title}}</div>
						<div class="fui-cell-remark"></div>
				</div>
				<div class="jylabels jylabel-success-0 active" style="background-color:#fff;border-radius:0.2rem;padding: 0 0.5rem;margin-left:0.7rem;margin-top:-0.5rem;line-height:1.6">错题集</div>
		</div>
		<div style="padding:0 0.6rem" ng-include="sys_html('_lianxi_item')"></div>
		<div class="content-empty" ng-show="pagedata.allnum == 0 ">
		  <i class="icon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;font-size:2rem"></i><br/><p style="color: #999;font-size: .75rem">没有任何题目！</p>
		</div>
	</div>
</div>
<div ng-if="pagedata.allnum>0" class="fui-navbar">
    <a href="javascript:;" ng-click="pagedata.onitem();" class="nav-item">
        <span class="label">上一题</span>
    </a>
	<a class="external nav-item">
        <span class="label"><span class="syscolor">{{pagedata.params.page}}</span>/{{pagedata.allnum}}</span>
    </a>
	<a href="javascript:;" ng-click="pagedata.nextitem();" class="nav-item">
        <span class="label">下一题</span>
    </a>
</div>
<div ng-if="pagedata.showcard" class="popup">
	<div class="popup-body">
		<div class="popup-bottom">
			<i class="closed icon icon-cuowu" ng-click="pagedata.showcard=false"></i>
			<div class="fixed-title" style="margin-top:0.5rem">
							 <span class="befirst spacing">
								 <span class="icon icon-fengexianzuo" style="font-size:2rem;color:#666"></span>
							 </span> 
							 <span class="title-text bold" style="color:#333;line-height:2rem">答题卡</span> 
							 <span class="spacing">
								 <span class="icon icon-fengexianyou" style="font-size:2rem;color:#666"></span>
							 </span>
			</div>
			<div class="fui-icon-group col-5" style="height:20rem;padding:0.5rem;overflow-y:scroll">
				<a class="fui-icon-col-sm external" ng-repeat="item in pagedata.cards" style="padding:0.2rem 0.6rem" href="javascript:;" ng-click="pagedata.getnowitem($index+1);pagedata.showcard=false">
					<div class="text" style="width:2.5rem;height:2.5rem;line-height:2.5rem;padding:0;font-size:1rem;border:2px solid #333;border-radius: 2.5rem;">{{$index+1}}</div>
				</a>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
//获取关注
scope.pagedata.setlike=function(){
	scope.post_json('/lianxi/like/',scope.pagedata.nowitem,function(res){
		scope.message(res);
	});
}
</script>
<script>
scope.pagedata.getnowitem=function(page){
	page=page?page:scope.pagedata.params.page;
	scope.get('jy_kaoshi/cuo_ti/list/page='+page,function(res){
			scope.pagedata.nowitem=res.list[0];
			scope.$evalAsync();
	});
	scope.pagedata.params.page=page;
}
scope.pagedata.getnowitem(scope.pagedata.params.page);
</script>